from exts import db


# orm模型
class File(db.Model):
    __tablename__ = "file"
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    filename = db.Column(db.String(45), nullable=False)
    path = db.Column(db.String(200), nullable=False)
    time = db.Column(db.String(45), nullable=False)
    size = db.Column(db.String(45), nullable=False)


class Lock(db.Model):
    __tablename__ = "lock"
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    password = db.Column(db.String(45), nullable=False)
    open = db.Column(db.Integer, nullable=False)
